package co.lq.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import co.lq.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文章管理表
 * </p>
 *
 * @author billy
 * @since 2019-10-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Article对象", description = "文章管理表")
public class Article extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章管理ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer           id;

    @ApiModelProperty(value = "分类id")
    private String            cid;

    @ApiModelProperty(value = "文章标题")
    private String            title;

    @ApiModelProperty(value = "文章作者")
    private String            author;

    @ApiModelProperty(value = "文章图片")
    private String            imageInput;

    @ApiModelProperty(value = "文章简介")
    private String            synopsis;

    @ApiModelProperty(value = "文章分享标题")
    private String            shareTitle;

    @ApiModelProperty(value = "文章分享简介")
    private String            shareSynopsis;

    @ApiModelProperty(value = "浏览次数")
    private String            visit;

    @ApiModelProperty(value = "排序")
    private Integer           sort;

    @ApiModelProperty(value = "原文链接")
    private String            url;

    @ApiModelProperty(value = "状态")
    private Boolean           status;

    @ApiModelProperty(value = "添加时间")
    private String            addTime;

    @ApiModelProperty(value = "是否隐藏")
    private Boolean           hide;

    @ApiModelProperty(value = "管理员id")
    private Integer           adminId;

    @ApiModelProperty(value = "商户id")
    private Integer           merId;

    @ApiModelProperty(value = "产品关联id")
    private Integer           productId;

    @ApiModelProperty(value = "是否热门(小程序)")
    private Integer           isHot;

    @ApiModelProperty(value = "是否轮播图(小程序)")
    private Integer           isBanner;

    private String            content;

}
